Optimal. Leaf size=186 \[ \frac {6 B^2 n^2 \text {Li}_3\left (\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{b}+\frac {3 B n \text {Li}_2\left (\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^2}{b}-\frac {\log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{b}+\frac {6 B^3 n^3 \text {Li}_4\left (\frac {b (c+d x)}{d (a+b x)}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [B] time = 0.85, antiderivative size = 424, normalized size of antiderivative = 2.28, number of steps used = 14, number of rules used = 9, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {6742, 2488, 2411, 2343, 2333, 2315, 2506, 6610, 2508} \[ \frac {3 A^2 B n \text {PolyLog}\left (2,\frac {b c-a d}{d (a+b x)}+1\right )}{b}+\frac {6 A B^2 n \text {PolyLog}\left (2,\frac {b c-a d}{d (a+b x)}+1\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {6 A B^2 n^2 \text {PolyLog}\left (3,\frac {b c-a d}{d (a+b x)}+1\right )}{b}+\frac {6 B^3 n^2 \text {PolyLog}\left (3,\frac {b c-a d}{d (a+b x)}+1\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {3 B^3 n \text {PolyLog}\left (2,\frac {b c-a d}{d (a+b x)}+1\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {6 B^3 n^3 \text {PolyLog}\left (4,\frac {b c-a d}{d (a+b x)}+1\right )}{b}-\frac {3 A^2 B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {A^3 \log (a+b x)}{b}-\frac {3 A B^2 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {B^3 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2315
Rule 2333
Rule 2343
Rule 2411
Rule 2488
Rule 2506
Rule 2508
Rule 6610
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx &=\int \left (\frac {A^3}{a+b x}+\frac {3 A^2 B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x}+\frac {3 A B^2 \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x}+\frac {B^3 \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x}\right ) \, dx\\ &=\frac {A^3 \log (a+b x)}{b}+\left (3 A^2 B\right ) \int \frac {\log \left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x} \, dx+\left (3 A B^2\right ) \int \frac {\log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x} \, dx+B^3 \int \frac {\log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x} \, dx\\ &=\frac {A^3 \log (a+b x)}{b}-\frac {3 A^2 B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {3 A B^2 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {B^3 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {\left (3 A^2 B (b c-a d) n\right ) \int \frac {\log \left (-\frac {b c-a d}{d (a+b x)}\right )}{(a+b x) (c+d x)} \, dx}{b}+\frac {\left (6 A B^2 (b c-a d) n\right ) \int \frac {\log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx}{b}+\frac {\left (3 B^3 (b c-a d) n\right ) \int \frac {\log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx}{b}\\ &=\frac {A^3 \log (a+b x)}{b}-\frac {3 A^2 B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {3 A B^2 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {B^3 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {6 A B^2 n \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {3 B^3 n \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {\left (3 A^2 B (b c-a d) n\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {b c-a d}{d x}\right )}{x \left (\frac {b c-a d}{b}+\frac {d x}{b}\right )} \, dx,x,a+b x\right )}{b^2}-\frac {\left (6 A B^2 (b c-a d) n^2\right ) \int \frac {\text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{(a+b x) (c+d x)} \, dx}{b}-\frac {\left (6 B^3 (b c-a d) n^2\right ) \int \frac {\log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{(a+b x) (c+d x)} \, dx}{b}\\ &=\frac {A^3 \log (a+b x)}{b}-\frac {3 A^2 B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {3 A B^2 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {B^3 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {6 A B^2 n \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {3 B^3 n \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 A B^2 n^2 \text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 B^3 n^2 \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}-\frac {\left (3 A^2 B (b c-a d) n\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {(b c-a d) x}{d}\right )}{\left (\frac {b c-a d}{b}+\frac {d}{b x}\right ) x} \, dx,x,\frac {1}{a+b x}\right )}{b^2}-\frac {\left (6 B^3 (b c-a d) n^3\right ) \int \frac {\text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{(a+b x) (c+d x)} \, dx}{b}\\ &=\frac {A^3 \log (a+b x)}{b}-\frac {3 A^2 B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {3 A B^2 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {B^3 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {6 A B^2 n \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {3 B^3 n \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 A B^2 n^2 \text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 B^3 n^2 \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 B^3 n^3 \text {Li}_4\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}-\frac {\left (3 A^2 B (b c-a d) n\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {(b c-a d) x}{d}\right )}{\frac {d}{b}+\frac {(b c-a d) x}{b}} \, dx,x,\frac {1}{a+b x}\right )}{b^2}\\ &=\frac {A^3 \log (a+b x)}{b}-\frac {3 A^2 B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {3 A B^2 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {B^3 \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {3 A^2 B n \text {Li}_2\left (\frac {b (c+d x)}{d (a+b x)}\right )}{b}+\frac {6 A B^2 n \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {3 B^3 n \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_2\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 A B^2 n^2 \text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 B^3 n^2 \log \left (e (a+b x)^n (c+d x)^{-n}\right ) \text {Li}_3\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}+\frac {6 B^3 n^3 \text {Li}_4\left (1+\frac {b c-a d}{d (a+b x)}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.99, size = 2513, normalized size = 13.51 \[ \text {Result too large to show} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.73, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {B^{3} \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right )^{3} + 3 \, A B^{2} \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right )^{2} + 3 \, A^{2} B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A^{3}}{b x + a}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A\right )}^{3}}{b x + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 3.34, size = 0, normalized size = 0.00 \[ \int \frac {\left (B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )+A \right )^{3}}{b x +a}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {B^{3} \log \left (b x + a\right ) \log \left ({\left (d x + c\right )}^{n}\right )^{3}}{b} + \frac {A^{3} \log \left (b x + a\right )}{b} + \int \frac {B^{3} b c \log \relax (e)^{3} + 3 \, A B^{2} b c \log \relax (e)^{2} + 3 \, A^{2} B b c \log \relax (e) + {\left (B^{3} b d x + B^{3} b c\right )} \log \left ({\left (b x + a\right )}^{n}\right )^{3} + 3 \, {\left (B^{3} b c \log \relax (e) + A B^{2} b c + {\left (B^{3} b d \log \relax (e) + A B^{2} b d\right )} x\right )} \log \left ({\left (b x + a\right )}^{n}\right )^{2} + 3 \, {\left (B^{3} b c \log \relax (e) + A B^{2} b c + {\left (B^{3} b d \log \relax (e) + A B^{2} b d\right )} x + {\left (B^{3} b d n x + B^{3} a d n\right )} \log \left (b x + a\right ) + {\left (B^{3} b d x + B^{3} b c\right )} \log \left ({\left (b x + a\right )}^{n}\right )\right )} \log \left ({\left (d x + c\right )}^{n}\right )^{2} + {\left (B^{3} b d \log \relax (e)^{3} + 3 \, A B^{2} b d \log \relax (e)^{2} + 3 \, A^{2} B b d \log \relax (e)\right )} x + 3 \, {\left (B^{3} b c \log \relax (e)^{2} + 2 \, A B^{2} b c \log \relax (e) + A^{2} B b c + {\left (B^{3} b d \log \relax (e)^{2} + 2 \, A B^{2} b d \log \relax (e) + A^{2} B b d\right )} x\right )} \log \left ({\left (b x + a\right )}^{n}\right ) - 3 \, {\left (B^{3} b c \log \relax (e)^{2} + 2 \, A B^{2} b c \log \relax (e) + A^{2} B b c + {\left (B^{3} b d x + B^{3} b c\right )} \log \left ({\left (b x + a\right )}^{n}\right )^{2} + {\left (B^{3} b d \log \relax (e)^{2} + 2 \, A B^{2} b d \log \relax (e) + A^{2} B b d\right )} x + 2 \, {\left (B^{3} b c \log \relax (e) + A B^{2} b c + {\left (B^{3} b d \log \relax (e) + A B^{2} b d\right )} x\right )} \log \left ({\left (b x + a\right )}^{n}\right )\right )} \log \left ({\left (d x + c\right )}^{n}\right )}{b^{2} d x^{2} + a b c + {\left (b^{2} c + a b d\right )} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )\right )}^3}{a+b\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________